package com.example.demo.utils;

import java.util.List;

/**
 * 分页结果封装类
 * @param <T> 数据类型
 */
public class PagingResult<T> {
    private List<T> rows; // 数据列表
    private long total; // 总记录数

    public PagingResult() {
    }

    public PagingResult(List<T> rows, long total) {
        this.rows = rows;
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}